import React from "react";
import globalStyles from "@/common/styles/globalStyles";
import { View, Text, StyleSheet } from "react-native";

export default function TilteCutLine( props:{title:string} ) {
    const { title } = props
	return (
		<View style={[globalStyles.rowLine]}>
			<View style={styles.line}></View>
			<Text style={styles.title}> {title} </Text>
			<View style={styles.line}></View>
		</View>
	);
}
const styles = StyleSheet.create({
	line: {
		width: "20%",
		borderTopWidth: 1, // 设置底部边框宽度
		borderColor: "#dcdfe6", // 设置边框颜色
		alignSelf: "center", // 保证线条居中
	},
	title: {
		color: "#909399",
		fontSize: 14,
		fontWeight: "600",
		marginHorizontal: 16,
	},
});
